package com.zhongkai.model3;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Objects;

@Entity
@Table(name = "record2",    catalog = "")
public class Record2 implements Serializable {
    private Long id;
    private String warUuid;
    private String warName;
    private String warCount;
    private String recordUser;
    private String userId;
    private Long recordTime;
    private String recordType;
    private String indUuid;


    private String warPs; //备注


    @Basic
    @Column(name = "war_ps")
    public String getWarPs() {
        return warPs;
    }

    public void setWarPs(String warPs) {
        this.warPs = warPs;
    }
    @Basic
    @Column(name = "ind_uuid")
    public String getIndUuid() {
        return indUuid;
    }

    public void setIndUuid(String indUuid) {
        this.indUuid = indUuid;
    }

    @Id
    @GenericGenerator(name = "generator", strategy = "increment")
    @GeneratedValue(generator = "generator")
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }


    @Basic
    @Column(name = "war_uuid")
    public String getWarUuid() {
        return warUuid;
    }

    public void setWarUuid(String warUuid) {
        this.warUuid = warUuid;
    }




    @Basic
    @Column(name = "war_name")
    public String getWarName() {
        return warName;
    }

    public void setWarName(String warName) {
        this.warName = warName;
    }

    @Basic
    @Column(name = "war_count")
    public String getWarCount() {
        return warCount;
    }

    public void setWarCount(String warCount) {
        this.warCount = warCount;
    }

    @Basic
    @Column(name = "record_user")
    public String getRecordUser() {
        return recordUser;
    }

    public void setRecordUser(String recordUser) {
        this.recordUser = recordUser;
    }

    @Basic
    @Column(name = "user_id")
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Basic
    @Column(name = "record_time")
    public Long getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Long recordTime) {
        this.recordTime = recordTime;
    }

    @Basic
    @Column(name = "record_type")
    public String getRecordType() {
        return recordType;
    }

    public void setRecordType(String recordType) {
        this.recordType = recordType;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Record2 record = (Record2) o;
        return Objects.equals(id, record.id) &&
                Objects.equals(warUuid, record.warUuid) &&
                Objects.equals(warName, record.warName) &&
                Objects.equals(warCount, record.warCount) &&
                Objects.equals(recordUser, record.recordUser) &&
                Objects.equals(userId, record.userId) &&
                Objects.equals(recordTime, record.recordTime) &&
                Objects.equals(recordType, record.recordType);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, warUuid, warName, warCount, recordUser, userId, recordTime, recordType);
    }
}
